mmc: sunxi: add support for automatic delay calibration
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 6 Nov 2018 04:24:28 +0000 (20:24 -0800)
committerVagrant Cascadian <vagrant@debian.org>
Sun, 9 Dec 2018 07:16:44 +0000 (07:16 +0000)
commit2a35e0a1d325f40aab89520f187e5d49741394aa
treefad0cc713f30e0369a89fb43004587b152ee171e
parentabee0b7428efaede450eb2e65b6de65584f82068
mmc: sunxi: add support for automatic delay calibration

A64 and H6 support automatic delay calibration and Linux driver uses it
instead of hardcoded delays. Add support for it to u-boot driver.

Fixes eMMC instability on Pinebook

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Tested-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Cc: Vagrant Cascadian <vagrant@debian.org>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Gbp-Pq: Topic pinebook
Gbp-Pq: Name 0007-mmc-sunxi-add-support-for-automatic-delay-calibratio.patch
arch/arm/include/asm/arch-sunxi/mmc.h
drivers/mmc/sunxi_mmc.c